package com.example.yiwei.crm.view.frament.clueDetailedMenu;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.yiwei.crm.R;
import com.example.yiwei.crm.data.GetClue;
import com.example.yiwei.crm.entity.ClueMeesageEntity;

/**
 * Created by Administrator on 2017/1/12.
 */

public class clueContactFragment extends Fragment {
    TextView txt_phone,txt_mobile_phone,txt_weibo,txt_address,txt_email,txt_zip_code;
    ClueMeesageEntity clue;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View rootview=inflater.inflate(R.layout.fragment_clue_contact,container,false);
        txt_address= (TextView) rootview.findViewById(R.id.fragment_clue_contact_address);
        txt_email= (TextView) rootview.findViewById(R.id.fragment_clue_contact_email);
        txt_mobile_phone= (TextView) rootview.findViewById(R.id.fragment_clue_contact_mobile_phone);
        txt_phone= (TextView) rootview.findViewById(R.id.fram_clue_contact_phone);
        txt_zip_code= (TextView) rootview.findViewById(R.id.fragment_clue_contact_zip_code);
        txt_weibo= (TextView) rootview.findViewById(R.id.fram_clue_contact_Weibo);
        clue= GetClue.get();
        txt_weibo.setText(clue.getClue_weibo());
        txt_phone.setText(clue.getClue_phone());
        txt_mobile_phone.setText(clue.getClue_mobile_phone());
        txt_email.setText(clue.getClue_mail());
        txt_address.setText(clue.getClue_address());
        txt_zip_code.setText(clue.getClue_Zip_Code());
        return rootview;
    }
}
